/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.cslg.dorm.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍安排Entity
 * @author 张文锦
 * @version 2016-12-30
 */
public class DormArrange extends DataEntity<DormArrange> {
	
	private static final long serialVersionUID = 1L;
	private String remark;		// 备注信息
	private String ssh;		// 宿舍号
	private String cch;		// 床位号
	private String xh;		// 学号
	
	public DormArrange() {
		super();
	}

	public DormArrange(String id){
		super(id);
	}

	@Length(min=0, max=255, message="备注信息长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=1, max=10, message="宿舍号长度必须介于 1 和 10 之间")
	public String getSsh() {
		return ssh;
	}

	public void setSsh(String ssh) {
		this.ssh = ssh;
	}
	
	@Length(min=1, max=2, message="床位号长度必须介于 1 和 2 之间")
	public String getCch() {
		return cch;
	}

	public void setCch(String cch) {
		this.cch = cch;
	}
	
	@Length(min=1, max=64, message="学号长度必须介于 1 和 64 之间")
	public String getXh() {
		return xh;
	}

	public void setXh(String xh) {
		this.xh = xh;
	}
	
}